projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a144a6
)
Disallow 'fields' when writing unicsv (#1059)
author
GPSBabel
<12013583+GPSBabelDeveloper@users.noreply.github.com>
Wed, 5 Apr 2023 12:17:16 +0000
(07:17 -0500)
committer
GitHub
<noreply@github.com>
Wed, 5 Apr 2023 12:17:16 +0000
(07:17 -0500)
This closes https://github.com/GPSBabel/gpsbabel/issues/1042
unicsv.cc
patch
|
blob
|
history
diff --git
a/unicsv.cc
b/unicsv.cc
index d96c248f395806c57959d69cde5e02069cec9c7c..3067e54f1b1c4af1b93f845f2e70ca79505dc936 100644
(file)
--- a/
unicsv.cc
+++ b/
unicsv.cc
@@
-1705,6
+1705,10
@@
UnicsvFormat::unicsv_waypt_disp_cb(const Waypoint* wpt)
void
UnicsvFormat::wr_init(const QString& fname)
{
+ if (opt_fields) {
+ fatal(FatalMsg() << MYNAME <<
+ ": option 'fields' is not supported on output");
+ }
fout = new gpsbabel::TextStream;
fout->open(fname, QIODevice::WriteOnly, MYNAME, opt_codec);
fout->setRealNumberNotation(QTextStream::FixedNotation);